home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / lightning-0.8-tb-win.xpi / chrome / calendar.jar / content / calendar / calendarCreation.xul < prev    next >
Extensible Markup Language  |  2008-03-13  |  7KB  |  157 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is Mozilla Calendar Code.
  16.    -
  17.    - The Initial Developer of the Original Code is Stuart Parmenter.
  18.    - Portions created by the Initial Developer are Copyright (C) 2005
  19.    - the Initial Developer. All Rights Reserved.
  20.    -
  21.    - Contributor(s): Mike Shaver <shaver@mozilla.org> 
  22.    -                 Michiel van Leeuwen <mvl@exedo.nl>
  23.    -                 Simon Paquet <bugzilla@babylonsounds.com>
  24.    -                 Gary van der Merwe <garyvdm@gmail.com>
  25.    -                 Philipp Kewisch <mozilla@kewis.ch>
  26.    -
  27.    - Alternatively, the contents of this file may be used under the terms of
  28.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  29.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.    - in which case the provisions of the GPL or the LGPL are applicable instead
  31.    - of those above. If you wish to allow use of your version of this file only
  32.    - under the terms of either the GPL or the LGPL, and not to allow others to
  33.    - use your version of this file under the terms of the MPL, indicate your
  34.    - decision by deleting the provisions above and replace them with the notice
  35.    - and other provisions required by the LGPL or the GPL. If you do not delete
  36.    - the provisions above, a recipient may use your version of this file under
  37.    - the terms of any one of the MPL, the GPL or the LGPL.
  38.    -
  39.    - ***** END LICENSE BLOCK ***** -->
  40.  
  41. <!-- Style sheets -->
  42. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  43.  
  44. <!DOCTYPE dialog 
  45. [
  46.     <!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/calendarCreation.dtd" > %dtd1;
  47.     <!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
  48. ]>
  49.  
  50. <!-- The Window  -->
  51.  
  52. <wizard id="calendar-wizard"
  53.         title="&wizard.title;"
  54.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  55.         onwizardfinish=""
  56.         persist="screenX screenY">
  57.  
  58.    <script type="application/x-javascript" src="chrome://calendar/content/calUtils.js"/>
  59.    <script type="application/x-javascript" src="chrome://calendar/content/calendarCreation.js"/>
  60.  
  61.    <wizardpage pageid="initialPage" 
  62.                next="locationPage"
  63.                label="&wizard.label;"
  64.                description="&wizard.description;"
  65.                onpageshow="checkRequired();"
  66.                onpageadvanced="onInitialAdvance();">
  67.         <description>&initialpage.description;</description>
  68.         <radiogroup id="calendar-type">
  69.             <radio value="local" label="&initialpage.computer.label;" selected="true"/>
  70.             <radio value="remote" label="&initialpage.network.label;"/>
  71.         </radiogroup>
  72.    </wizardpage>
  73.  
  74.    <wizardpage pageid="locationPage"
  75.                next="customizePage"
  76.                label="&wizard.label;"
  77.                onpageshow="initLocationPage();"
  78.                onpageadvanced="prepareCreateCalendar()"
  79.                description="&wizard.description;">
  80.         <description>&locationpage.description;</description>
  81.         <grid>
  82.             <columns>
  83.                 <column/>
  84.                 <column flex="1"/>
  85.             </columns>
  86.             <rows>
  87.                 <row>
  88.                     <label value="&calendarproperties.format.label;" control="calendar-format"/>
  89.                     <radiogroup id="calendar-format">
  90.                         <radio value="ics" label="&calendarproperties.webdav.label;" selected="true" />
  91.                         <radio value="caldav" label="&calendarproperties.caldav.label;"/>
  92.                         <radio id="wcap-radio" value="wcap" label="&calendarproperties.wcap.label;"/>
  93.                     </radiogroup>
  94.                 </row>
  95.                 <row align="center">
  96.                     <label value="&calendarproperties.location.label;" control="calendar-uri"/>
  97.                     <textbox id="calendar-uri"
  98.                              required="true" oninput="checkRequired();" />
  99.                 </row>
  100.                 <!--
  101.                 <description>&locationpage.login.description;</description>
  102.                 <row align="center">
  103.                     <label value="&locationpage.username.label;" control="calendar-username"/>
  104.                     <textbox id="calendar-username"/>
  105.                 </row>
  106.                 <row align="center">
  107.                     <label value="&locationpage.password.label;" control="calendar-password"/>
  108.                     <textbox id="calendar-password"/>
  109.                 </row>
  110.                 -->
  111.             </rows>
  112.         </grid>
  113.    </wizardpage>
  114.  
  115.    <wizardpage pageid="customizePage"
  116.                description="&custompage.shortdescription;"
  117.                label="&wizard.label;"
  118.                next="finishPage"
  119.                onpageshow="initCustomizePage()"
  120.                onpageadvanced="doCreateCalendar();">
  121.         <description>&custompage.longdescription;</description>
  122.         <grid>
  123.             <columns>
  124.                 <column/>
  125.                 <column flex="1"/>
  126.             </columns>
  127.             <rows id="customize-rows">
  128.                 <row id="customize-name-row" align="center">
  129.                     <label value="&calendarproperties.name.label;" control="calendar-name"/>
  130.                     <textbox id="calendar-name"
  131.                              required="true" oninput="checkRequired();"/>
  132.                 </row>
  133.                 <row id="customize-color-row" align="center">
  134.                     <label value="&calendarproperties.color.label;" control="calendar-color"/>
  135.                     <hbox align="center">
  136.                         <colorpicker id="calendar-color"
  137.                                      class="small-margin"
  138.                                      type="button"
  139.                                      palettename="standard"/>
  140.                     </hbox>
  141.                 </row>
  142.                 <row id="customize-suppressAlarms-row">
  143.                     <label value="&calendarproperties.firealarms.label;:" control="fire-alarms"/>
  144.                     <checkbox id="fire-alarms" checked="true"/>
  145.                 </row>
  146.             </rows>
  147.         </grid>
  148.    </wizardpage>
  149.  
  150.    <wizardpage pageid="finishPage" 
  151.                description="&finishpage.shortdescription;"
  152.                label="&wizard.label;"
  153.                onpageshow="setCanRewindFalse();">
  154.         <description>&finishpage.longdescription;</description>
  155.    </wizardpage>
  156. </wizard>
  157.